<?php 

PremiumPress_Header();

if(isset($GLOBALS['ebaysearch'])){
  
	include("_ebay_results.php");	

}elseif(isset($GLOBALS['amazonsearch'])){ 

	include("_amazon_results.php");	

}else{

?>

<div id="premiumpress_box1" class="premiumpress_box premiumpress_box-100"><div class="premiumpress_boxin"><div class="header">
<h3><img src="<?php bloginfo('template_url'); ?>/images/premiumpress/h-ico/refresh.png" align="absmiddle"> Import Tools</h3>							 
<ul>
	
	<li><a rel="premiumpress_tab1" href="#" class="active">Amazon</a></li>
    <li><a rel="premiumpress_tab2" href="#">Ebay</a></li>
    <li><a rel="premiumpress_tab3" href="#">Datafeedr</a></li>

    <li><a rel="premiumpress_tab4" href="#">My Affiliate ID's</a></li>
    
</ul>
</div>

<div id="premiumpress_tab1" class="content">
<form method="post" target="_self" <?php if(isset($GLOBALS['startsearch'])){ ?>style="display:none;"<?php } ?> <?php if($GLOBALS['sf'] ==1){ ?>onsubmit="UpgradeVIP();return false;"<?php } ?>>			
<input type="hidden" name="feed" value="1">


<table class="maintable" style="background:white;">





	<tr class="mainrow">
		<td class="titledesc">Amazon <br /> Product Tag / Keyword</td>
		<td class="forminp">
			<input name="amazon[keyword]" value="<?php echo $_POST['amazon']['keyword']; ?>" type="text" value="" style="width: 500px; height:40px; font-size:18px; background:#D9F9D8"><br />
			<small>Example: "tables", "chairs","dvd player"</small>
		</td>
	</tr>
	<tr class="mainrow">
		<td class="titledesc">Search Category</td>
		<td class="forminp">
			<select name="amazon[keyword_cat]" style="font-size:16px; width:250px;">
<option value="All" selected>All Categories (see notes below)</option>
<option>Apparel</option>
<option>Automotive</option>
<option>Baby</option>
<option>Beauty</option>
<option>Blended</option>
<option>Books</option>
<option>Classical</option>
<option>DigitalMusic</option>
<option>DVD</option>
<option>Electronics</option>
<option>ForeignBooks</option>
<option>GourmetFood</option>
<option>Grocery</option>
<option>HealthPersonalCare</option>
<!--<option>Hobbies</option>-->
<option>HomeGarden</option>
<option>HomeImprovement</option>
<option>Industrial</option>
<option>Jewelry</option>
<option>KindleStore</option>
<option>Kitchen</option>
<option>Magazines</option>
<option>Merchants</option>
<option>Miscellaneous</option>
<option>MP3Downloads</option>
<option>Music</option>
<option>MusicalInstruments</option>
<option>MusicTracks</option>
<option>OfficeProducts</option>
<option>OutdoorLiving</option>
<option>PCHardware</option>
<option>PetSupplies</option>
<option>Photo</option>
<option>Shoes</option>
<option>SilverMerchant</option>
<option>Software</option>
<!--<option>SoftwareVideoGames</option>-->
<option>SportingGoods</option>
<option>Tools</option>
<option>Toys</option>
<option>VHS</option>
<option>Video</option>
<option>VideoGames</option>
<option>Watches</option>
<option>Wireless</option>
<option>WirelessAccessories</option>
</select>
<br />
			<small>If you select the 'All categories' above Amazon will only show you a maxium of 5 pages. For better search results select a more accurate category.</small>

		</td>
	</tr>
	<tr class="mainrow">
		<td class="titledesc">Add to Category</td>
		<td class="forminp">
		 
		<?php
		
		echo ShopperPress_Admin_Cats();
		
		?>
		 
		<br />
			<small>Select one or more categories to import these products into.</small>

		</td>
	</tr>
<tr>    
</table>


 

<table style="margin-bottom: 20px;"></table>
<h3 class="title"> <a href="javascript:void(0);" onClick="toggleLayer('am_2');" style="text-decoration:none; color:#333;"><img src="<?php bloginfo('template_url'); ?>/images/add.png" align="absmiddle"> Import Settings </a></h3>
<table class="maintable" style="background:white; display:none;" id="am_2">


  	<tr class="mainrow">
		<td class="titledesc">Store Images Locally</td>
		<td class="forminp"><select  class="input" name="store_image"><option value="yes">Yes</option><option value="no" selected>No (Recommended)</option></select>  </td>
	</tr>

	<tr class="mainrow">
		<td class="titledesc">BrowseNode</td>
		<td class="forminp">
			<input name="amazon[node]" type="text" value="" style="width: 100px; height:40px; font-size:18px; background:#D9F9D8"><br />
			<small>Use the BrowseNode parameter to narrow your search to a specific category of products in the Amazon catalog. The BrowseNode parameter may contain the ID of any Amazon browse node. <a href="http://docs.amazonwebservices.com/AWSEcommerceService/2005-03-23/ApiReference/USBrowseNodesArticle.html" target="_blank">Click here to see the full list</a></small>
		</td>
	</tr>

 
	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Item Page </td>
		<td class="forminp">
			<input name="amazon[start_page]" type="text" value="<?php echo get_option("amazon[start_page]"); ?>" style="width: 100px;"> <br />
			<small>SThe ItemPage parameter allows you to create a paginated list of search results. This parameter returns the specified page. When you use ItemPage, ItemSearch will return 10 search results at a time. The maximum ItemPage number that can be returned is 3200.</small>
</td></tr>

	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Min Price </td>
		<td class="forminp">
			<input name="amazon[minprice]" type="text" value="<?php echo get_option("amazon[minprice]"); ?>" style="width: 100px;"> <br />
			<small>Enter a value for the minimum price of items found in search</small>
</td></tr>

	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Max Price </td>
		<td class="forminp">
			<input name="amazon[maxprice]" type="text" value="<?php echo get_option("amazon[maxprice]"); ?>" style="width: 100px;"> <br />
			<small>Enter a value for the maxium price of items found in search</small>
</td></tr>

	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Brand </td>
		<td class="forminp">
			<input name="amazon[brand]" type="text" value="<?php echo get_option("amazon[brand]"); ?>" style="width: 200px;"> <br />
			<small>If you would like to limit only a certian brand, enter the brand above.</small>
</td></tr>
 
	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Condition </td>
		<td class="forminp">
	
			<select name="amazon[condition]">
				<option>All</option>
				<option>New</option>
				<option>Used</option>
				<option>Refurbished</option>
				<option>Collectible</option>
			</select>
			 <br />
			<small>Enter a value for the maxium price of items found in search</small>
</td></tr>

	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Merchant ID </td>
		<td class="forminp">
			<input name="amazon[merchantid]" type="text" value="<?php echo get_option("amazon[merchantid]"); ?>" style="width: 100px;"> <br />
			<small>Enter a value here only if you wish to find products by a single merchant.</small>
</td></tr>

	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Import Product Reviews </td>
		<td class="forminp">
	
			<select name="amazon_reviews">
				<option value="yes">Yes</option>
				<option value="no">No</option>
				
			</select>
			 <br />
			<small>Enter a value for the maxium price of items found in search</small>
</td></tr>

	<tr class="mainrow" style="border-bottom:0px; padding-bottom:0px;">
		<td class="titledesc">Import Amazon Store</td>
		<td class="forminp">
	
			<select name="amazon[country]">
				<option value="com" selected>United States (.com Store)</option>
				<option value="ca">Canada</option>
				<option value="co.uk">United Kingdom</option>
<option value="fr">France</option>
<option value="de">Germany</option>
<option value="jp">Japan</option>
			</select>
			 <br />
			<small>Select which Amazon store to search.</small>
</td></tr>

<tr>
</tr>

</table>
 
<table style="margin-bottom: 20px;"></table>
<h3 class="title"><a href="javascript:void(0);" onClick="toggleLayer('am_3');" style="text-decoration:none; color:#333;"><img src="<?php bloginfo('template_url'); ?>/images/add.png" align="absmiddle"> Search and Replace </a></h3>
<table class="maintable"  style="background:white;padding:10px; display:none;" id="am_3">
<td colspan="3"><p>Here you can enter a word and it will be replaced with another word if it matches within the title or body of the item.</p></td>
<tr><td width="50%"><b>Search for</b></td><td width="50%"><b>Replace with</b></td></tr>
<tr>
<td><input name="searchfor[0]" size="50"></td><td><input name="replacewith[0]" size="50"></td>
</tr><tr><td><input name="searchfor[1]" size="50"></td>
<td><input name="replacewith[1]" size="50"></td></tr></table>

</table>


 
<table style="margin-bottom: 20px;"></table>
<h3 class="title"><a href="javascript:void(0);" onClick="toggleLayer('am_4');" style="text-decoration:none; color:#333;"><img src="<?php bloginfo('template_url'); ?>/images/add.png" align="absmiddle"> Setup Scheduled Search </a></h3>

<table class="maintable" style="background:white; display:none;" id="am_4">

	<tr class="mainrow">
		<td class="titledesc">Name</td>
		<td class="forminp">
			<input name="schedule[name]" type="text" value="" style="width: 400px; height:40px; font-size:18px; background:#D9F9D8"><br />
			<small>Any name to remember this schedule by.</a></small>
		</td>
	</tr>

	<tr class="mainrow">
		<td class="titledesc">Time</td>
		<td class="forminp">
			
			<select name="schedule[time]">
			<option value="hourly">Hourly</option>
			<option value="twicedaily">Twice Daily</option>
			<option value="daily">Daily</option>
			</select>
			<br />
			<small>The amount of time before the schedule reactivates. </a></small>
		</td>
	</tr>

 <tr>
<td colspan="2">

<a href="admin.php?page=import&deletesch=1">Delete and Stop all existing scheduled searches</a>
<table style="margin-bottom: 20px;"></table>
<h3 class="title">My Current Scheduled Searches </h3>
<table width="100%"  border="0">
<?php
$schedule_total = get_option("schedule_total"); $a = 1; $i = 1;
if($schedule_total !="" && $schedule_total > 0){
while($a <= $schedule_total){

$data = get_option("schedule_".$a);
if(is_array($data)){
?>
  <tr style="background:<?php if($i % 2){ ?>white;<?php }else{ ?>#E3FCE4<?php } ?>">
    <td style="padding:20px;"> 
	<h2><?php echo $data['name']; ?></h2>
	<h3>Time: <?php echo $data['time']; ?> </h3>
	<a href="javascript:void(0);" onClick="toggleLayer('s_<?php echo $a ?>');">View Search Values</a> <div style="display:none;" id="s_<?php echo $a ?>"><?php foreach($data as $key => $val){ if($val !="" && $key !="cat" && $key !="name" && $key !="time"){ print $key ." = ".$val." <br />"; } } ?></div>
	</td><td> [ <a href="admin.php?page=import&delf=<?php echo $a; ?>">Delete</a> ] </td> </tr>

<?php $i++; } $a++; } } ?>
</table>
</td>
</tr>

</table> 

</table>
 


 <p><input class="premiumpress_button" type="submit" value="Start Search" style="color:white;" /></p>
</form>

</div>
<div id="premiumpress_tab2" class="content">
<form method="post" target="_self" <?php if(isset($GLOBALS['startsearch'])){ ?>style="display:none;"<?php } ?> <?php if($GLOBALS['sf'] ==1){ ?>onsubmit="UpgradeVIP();return false;"<?php } ?>>			
<input type="hidden" name="ebay" value="1" />
<input type="hidden" name="start_page" value="1" />

<table class="maintable" style="background:white;">

	<tr class="mainrow">
		<td class="titledesc">Ebay <br /> Product Tag / Keyword</td>
		<td class="forminp">
			<input name="keyword" value="" type="text" value="" style="width: 500px; height:40px; font-size:18px; background:#D9F9D8"><br />
			<small>Example: "tables", "chairs","dvd player"</small>
		</td>
	</tr>
 
	<tr class="mainrow">
		<td class="titledesc">Add to Category</td>
		<td class="forminp">
		 
		<?php
		
		echo ShopperPress_Admin_Cats();
		
		?>
		 
		<br />
			<small>Select one or more categories to import these products into.</small>

		</td>
	</tr>
<tr>    
</table>


<table></table>
<h3 class="title"><a href="javascript:void(0);" onClick="toggleLayer('am_3a');" style="text-decoration:none; color:#333;"><img src="<?php bloginfo('template_url'); ?>/images/add.png" align="absmiddle"> Ebay Extra Search Options </a></h3>
<table class="maintable"  style="background:white;padding:10px; display:none;" id="am_3a">

	<tr class="mainrow">
		<td class="titledesc">My Ebay API ID</td>
		<td class="forminp">
			<input name="ebay_api" type="text" value="<?php echo get_option("ebay_api"); ?>" style="width: 500px;"><br />
			<small>You get this ID from your Ebay developer account. Eg: MarkAnth-921e-44b0-81ce-642804e36157</small>
		</td>
	</tr>
    

    	<tr class="mainrow">
		<td class="titledesc">Find Products By</td>
		<td class="forminp">
			<select class="input" name="findby">
            <option value="findItemsIneBayStores">  Items In eBay Stores ( search a specific store )</option>
            <option value="findItemsByKeywords"  selected> Items By Keywords </option>            
            <option value="findItemsByProduct"> Items By Product ( enter product ID, such as an ISBN, UPC, EAN, or ePID )</option>              
            </select>            
            <br />
			<small>Select how the results are ordered.</small>
		</td>
	</tr>
    
    	<tr class="mainrow">
		<td class="titledesc">Ebay Store Name</td>
		<td class="forminp">
			<input name="storeName" type="text" value="" style="width: 500px;"><br />
			<small>Note: Store names are case sensitive. Also, if the store name contains an ampersand (&), you must use the & character entity (& amp;) in its place.</small>
		</td>
	</tr>
       
    	<tr class="mainrow">
		<td class="titledesc">Sort By</td>
		<td class="forminp">
			<select class="input" name="sortOrder">
            <option value="BestMatch" selected> Best Match </option>
            <option value="CurrentPriceHighest"> Current Price (Highest) </option>            
            <option value="PricePlusShippingHighest"> Price Plus Shipping (Highest) </option>
            <option value="PricePlusShippingLowest"> Price Plus Shipping (Lowest) </option>
            <option value="EndTimeSoonest"> End Time (Soonest) </option>            
            <option value="StartTimeNewest"> Start Time (Newest) </option>       
            </select>            
            <br />
			<small>Select how the results are ordered.</small>
		</td>
	</tr>

  	<tr class="mainrow">
		<td class="titledesc">Ebay Store</td>
		<td class="forminp">
        <select  class="input" name="ebay_globalid">
        <option value="EBAY-US" selected>eBay USA</option>
        <option value="EBAY-SG">eBay Singapore</option>
        <option value="EBAY-PL">eBay Poland</option>
        <option value="EBAY-PH">eBay Philippines</option>
        <option value="EBAY-NLBE">eBay Belgium (Dutch)</option>
        <option value="EBAY-NL">eBay Netherlands</option>
        <option value="EBAY-MY">eBay Malaysia</option>
        <option value="EBAY-MOTOR">eBay Motors</option>
        <option value="EBAY-IT">eBay Italy</option>
        <option value="EBAY-IN">eBay India</option>
        <option value="EBAY-IE">eBay Ireland</option>
        <option value="EBAY-HK">eBay Hong Kong</option>
        <option value="EBAY-GB">eBay UK</option>
        <option value="EBAY-FRCA">eBay Canada (French)</option>
        <option value="EBAY-FRBE">eBay Belgium (French)</option>
        <option value="EBAY-FR">eBay France</option>
        
        <option value="EBAY-ES">eBay Spain</option>
        <option value="EBAY-ENCA">eBay Canada (English)</option>
        <option value="EBAY-CH">eBay Switzerland</option>
        <option value="EBAY-DE">eBay Germany</option>
        <option value="EBAY-AU">eBay Australia</option>
        <option value="EBAY-AT">eBay Austria</option>
    
 
        </select>
        </td>
	</tr>

</table>


 
 <table></table>
<h3 class="title"><a href="javascript:void(0);" onClick="toggleLayer('am_3c');" style="text-decoration:none; color:#333;"><img src="<?php bloginfo('template_url'); ?>/images/add.png" align="absmiddle"> Ebay Affiliate Settings </a></h3>
<table class="maintable"  style="background:white;padding:10px; display:none;" id="am_3c">

	<tr class="mainrow">
		<td class="titledesc">Ebay Affiliate Tracking ID</td>
		<td class="forminp">
			<input name="ebay_tracking" type="text" value="<?php echo get_option("ebay_tracking"); ?>" style="width: 500px;"><br />
			<small></small>
		</td>
	</tr>
    
	<tr class="mainrow">
		<td class="titledesc">Ebay Affiliate Custom ID</td>
		<td class="forminp">
			<input name="ebay_customid" type="text" value="<?php echo get_option("ebay_customid"); ?>" style="width: 500px;"><br />
			<small></small>
		</td>
	</tr>   
    
 
</table> 


 <p><input class="premiumpress_button" type="submit" value="Start Search" style="color:white;" /></p>
</form>
</div>
<div id="premiumpress_tab3" class="content">
<table style="margin-bottom: 20px;"></table>
 <div style="display:visible; background:white; border:1px solid #ccc; border-top:0px;" id="i_0">

<table width="100%"  border="0">
  <tr>
    <td style="width:270px; padding:5px;"><a href="http://shopperpress.com/link/data-feedr/" target="_blank"><img src="<?php echo bloginfo('template_url'); ?>/images/datafeedr.jpg" style="border:1px solid #999;margin-left:10px;"></a></td>
    <td>

<h1>Instant Stores Using Datafeedr</h1>
<h3>Datafeedr allows you to instantly generate thousands of store products which you earn big $$$ for each sale!</h3>
<p>Whether your selling your own products or selling affiliate products, integrating a datafeedr product list can help generate extra revenue each month! </p>
<p>ShopperPress makes it quick and easy to integrate Datafeedr, simply signup with Datafeedr, create a product list, download the file and import it below!</p>
<p><a href="http://shopperpress.com/link/data-feedr/" target="_blank">Signup Now with Datafeedr and start earning an extra income right away!</a> -- Need Help? <a href="http://www.shopperpress.com/videos/">ShopperPress Video Tutorials</a></p>

</td> </tr></table>

</div>
 



 <table style="margin-bottom: 20px;"></table>
<h3 class="title"><a href="javascript:void(0);" onClick="toggleLayer('i_2');toggleLayer('i_2a');toggleLayer('i_2b');" style="text-decoration:none; color:#333;"><img src="<?php bloginfo('template_url'); ?>/images/add.png" align="absmiddle"> DataFeedr Import</a></h3>
<table class="maintable" style="background:white;display:none;" id="i_2">

<form method="post" name="ShopperPress" target="_self" enctype="multipart/form-data" <?php if($GLOBALS['sf'] ==1){ ?>onsubmit="UpgradeVIP();return false;"<?php } ?>>
<input name="datafeedr" type="hidden" value="yes" />
 <input name="upload" type="hidden" value="1" />

<table class="maintable" style="background:white;display:none;" id="i_2a">

<tr class="mainrow">
		<td class="titledesc">File Storage Folder (path)</td>

		<td class="forminp">
			<input name="adminArray[imagestorage_path]" type="text" style="width: 450px;" value="<?php echo get_option("imagestorage_path"); ?>" /><br />
			<small>This is the server path to the location of your images, example: <br /> /home/****/public_html/wp-content/themes/shopperpress/thumbs/</small>
		</td>
	</tr>


	<tr class="mainrow">
		<td class="titledesc">Step 1. Upload Shop File </td>
		<td class="forminp"> <input name="filename" type="file"> <br /><small>The Datafeedr shop file is the .txt file you download from the factory area.</small></td>
	</tr>

	 <tr>
	<td colspan="3"><p><input class="premiumpress_button" type="submit" value="Upload Shop File" style="color:white;"/></p></td>
	</tr>
</table>
</form>

<form method="post" name="ShopperPress" target="_self" enctype="multipart/form-data" <?php if($GLOBALS['sf'] ==1){ ?>onsubmit="UpgradeVIP();return false;"<?php } ?>>
<input name="datafeedr" type="hidden" value="yes" />
<table class="maintable" style="background:white;display:none;" id="i_2b">

	<tr class="mainrow">
		<td class="titledesc">Step 2. Import Data </td>
		<td class="forminp"><small>Select from your uploaded product files below;</small></td>
	</tr>

 
<?php

	$dir = WP_CONTENT_DIR . '/themes/shopperpress/thumbs/';			
 
	$file_list = '';
	$count=0;
	// Open a known directory, and proceed to read its contents
	if (is_dir($dir)) { 
		if ($dh = opendir($dir)) {
			while (($file = readdir($dh)) !== false) {

				if ($file != "." && $file != ".." && $file != "Thumbs.db" && $file != "index.html" && substr($file,-4) ==".txt") {
					$alternate = ($count % 2 == 0) ? 'alternate ' : '';
					$no_files = true;
					$filename = WP_CONTENT_DIR . '/themes/shopperpress/thumbs/' . $file;
					$file_list.='
					<tr class="mainrow">						 
						<td class="titledesc"> <input type="radio" name="filename" value="' . $filename . '" /></td>
						<td class="forminp">' . $file . ' (' . date ("Y-m-d H:i:s", filemtime($filename)) . ')</td>
					</tr>
					';	
					$count++;
				}
			}
			closedir($dh);
		}
		echo $file_list;
	}

?>
 
  	<tr class="mainrow">
		<td class="titledesc">Store Images Locally</td>
		<td class="forminp"><select  class="input" name="store_image"><option value="yes">Yes</option><option value="no" selected>No (Recommended)</option></select> <small></small></td>
	</tr>


 <tr>
<td colspan="3"><p><input class="premiumpress_button" type="submit" value="Start Import" style="color:white;" /></p></td>
</tr>

</table>

 </form>


 <table style="margin-bottom: 20px;"></table>
<h3 class="title"><a href="javascript:void(0);" onClick="toggleLayer('i_3');" style="text-decoration:none; color:#333;"><img src="<?php bloginfo('template_url'); ?>/images/add.png" align="absmiddle"> DataFeedr Website </a></h3>
<div style="display:visible" id="i_3">
<iframe src="http://shopperpress.com/link/data-feedr/" width="100%" style="height:900px;"></iframe>
</div>
</div>
<div id="premiumpress_tab4" class="content">
<div style="padding:10px;">
<div class="msg msg-info">
<p>The Affiliate ID section allows you to store all of your affiliate details and tracking code to be use with your products and website links.</p>
</div>
</div>
<form method="post" name="ShopperPress" <?php if($GLOBALS['sf'] ==1){ ?>onsubmit="UpgradeVIP();return false;"<?php } ?>>
<input name="submitted" type="hidden" value="yes" />

<table class="maintable" style="background:white;">

<tr class="mainrow">
<td class="titledesc">Select Affiliate Network</td>
<td class="forminp">

<select name="" style="font-size:16px; width:250px;" onChange="toggleLayer('a_'+this.value);">
<option value="All" selected>-- Select Network --</option>
<option value="1">ShareASale </option>
<option value="2">Affiliate Future</option>
<option value="3">LinkShare</option>
<option value="4">RegNow</option>
<option value="5">Commission Junction</option>
<option value="6">Webgains</option>

<option value="7">ClickBank</option>
<option value="8">TradeDoubler</option>
<option value="9">Bridaluxe</option>
<option value="10">Link Connector</option>

<option value="11">NetShops</option>
<option value="12">Buy.at</option>
<option value="13">PepperJam</option>
<option value="14">Google Affiliate Network</option>
<option value="15">Affiliate Window</option>
<option value="16">Commission Monster</option>

<option value="17">Market Health</option>
<option value="18">Affilinet</option>
<option value="19">OneNetworkDirect</option>
<option value="20">Amazon</option>

</select>

</td></tr>
 

		<tr class="mainrow" style="display:none" id="a_1">			 
			<td class="titledesc"> ShareASale </td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_1_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_1_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_1_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_1_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_2">					 
			<td class="titledesc">Affiliate Future</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_2_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_2_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_2_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_2_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_3">
			<td class="titledesc">LinkShare</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_3_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_3_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_3_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_3_TRACK"); ?>" /></td>

		<tr class="mainrow"  style="display:none" id="a_4">
			<td class="titledesc">RegNow</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_4_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_4_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_4_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_4_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow"  style="display:none" id="a_5">
			<td class="titledesc">Commission Junction</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_5_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_5_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_5_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_5_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_6">
			<td class="titledesc">Webgains</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_6_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_6_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_6_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_6_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_7">			 
			<td class="titledesc">ClickBank</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_7_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_7_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_7_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_7_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_8">
			<td class="titledesc">TradeDoubler</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_8_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_8_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_8_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_8_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_9">			 
			<td class="titledesc">Bridaluxe</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_9_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_9_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_9_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_9_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_10">	
			<td class="titledesc">Link Connector</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_10_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_10_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_10_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_10_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_11"> 
			<td class="titledesc">NetShops</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_11_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_11_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_11_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_11_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_12">
			<td class="titledesc">Buy.at </td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_12_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_12_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_12_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_12_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_13">
			<td class="titledesc">PepperJam	</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_13_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_13_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_13_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_13_TRACK"); ?>" /></td>
		</tr>
		
		<tr class="mainrow" style="display:none" id="a_14">
			<td class="titledesc">Google Affiliate Network</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_14_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_14_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_14_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_14_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_15">
			<td class="titledesc">Affiliate Window</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_15_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_15_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_15_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_15_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_16">
			<td class="titledesc" style="display:none" id="a_1">Commission Monster</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_16_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_16_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_16_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_16_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_17">
			<td class="titledesc">Market Health</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_17_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_17_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_17_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_17_TRACK"); ?>" /></td>
		</tr>
 
		<tr class="mainrow" style="display:none" id="a_18">
			<td class="titledesc">Affilinet</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_18_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_18_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_18_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_18_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_19">			
			<td class="titledesc">OneNetworkDirect </td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_19_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_19_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_19_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_19_TRACK"); ?>" /></td>
		</tr>

		<tr class="mainrow" style="display:none" id="a_20">		
			<td class="titledesc">Amazon</td>
			<td class="forminp">Affiliate ID<input name="adminArray[affiliates_20_ID]" type="text" style="width:100%" value="<?php echo get_option("affiliates_20_ID"); ?>" /><br />Tracking ID<input name="adminArray[affiliates_20_TRACK]" type="text" style="width:100%" value="<?php echo get_option("affiliates_20_TRACK"); ?>" /></td>
		</tr>
 

</table>


 


 
<p><input class="premiumpress_button" type="submit" value="Save Settings" style="color:white;" /></p>

</form>
</div>

<div id="premiumpress_tab5" class="content">
 
 
</div>            
	
<div id="premiumpress_tab6" class="content">tab 6</div>            
					 
                        
</div>
</div>
<div class="clearfix"></div> 

<?php } ?>